package org.example.lys.design.template.VO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.example.lys.design.template.Constants;
import org.example.lys.design.template.VO.DrawAwardVO;

/**
 * @author liyishan
 * @date 2023/5/29 10:14
 * @apiNote
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DrawResult {
    /**
     * 用户ID
     */
    private String uId;

    /**
     * 策略ID
     */
    private Long strategyId;

    /**
     * 中奖状态：0未中奖、1已中奖、2兜底奖 Constants.DrawState
     */
    private Integer drawState = Constants.DrawState.FAIL.getCode();

    /**
     * 中奖奖品信息
     */
    private DrawAwardVO drawAwardInfo;

    public DrawResult(String uId, Long strategyId, Integer code) {
        this.uId = uId;
        this.strategyId = strategyId;
        this.drawState = code;
    }


}
